package com.pond.pond.mapper;

import com.pond.pond.domain.FishingTechniqueCommentLike;
import org.apache.ibatis.annotations.Param;

/**
 * 评论点赞Mapper接口
 * 
 * @author pond
 * @date 2024-01-15
 */
public interface FishingTechniqueCommentLikeMapper 
{
    /**
     * 查询用户是否已点赞评论
     * 
     * @param commentId 评论ID
     * @param userId 用户ID
     * @return 点赞记录
     */
    public FishingTechniqueCommentLike selectByCommentAndUser(@Param("commentId") Long commentId, @Param("userId") Long userId);

    /**
     * 新增评论点赞记录
     * 
     * @param fishingTechniqueCommentLike 点赞记录
     * @return 结果
     */
    public int insertFishingTechniqueCommentLike(FishingTechniqueCommentLike fishingTechniqueCommentLike);

    /**
     * 删除评论点赞记录
     * 
     * @param commentId 评论ID
     * @param userId 用户ID
     * @return 结果
     */
    public int deleteByCommentAndUser(@Param("commentId") Long commentId, @Param("userId") Long userId);
}